Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Setting Up Transformation Matrices


Q3Matrix3x3_SetScale

You can use the Q3Matrix3x3_SetScale function to configure a 3-by-3 scaling transformation matrix.

TQ3Matrix3x3 *Q3Matrix3x3_SetScale (
TQ3Matrix3x3 *matrix3x3, 
float xScale, 
float yScale);
matrix3x3
A 3-by-3 matrix.
xScale
The desired amount of scaling along the x coordinate axis.
yScale
The desired amount of scaling along the y coordinate axis.
DESCRIPTION
The Q3Matrix3x3_SetScale function returns, as its function result and in the matrix3x3 parameter, a scaling matrix that scales an object by the amount xScale along the x coordinate axis and by the amount yScale along the y coordinate axis.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996